package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_transfee_free")
@Schema(name = "TzTransfeeFree", description = "")
public class TzTransfeeFree implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "指定条件包邮项id")
    @TableId(value = "transfee_free_id", type = IdType.AUTO)
    private Long transfeeFreeId;

    @Schema(description = "运费模板id")
    @TableField("transport_id")
    private Long transportId;

    @Schema(description = "包邮方式 （0 满x件/重量/体积包邮 1满金额包邮 2满x件/重量/体积且满金额包邮）")
    @TableField("free_type")
    private Byte freeType;

    @Schema(description = "需满金额")
    @TableField("amount")
    private BigDecimal amount;

    @Schema(description = "包邮x件/重量/体积")
    @TableField("piece")
    private BigDecimal piece;
}
